class Estado < ActiveRecord::Base
  set_table_name 'uf'

  belongs_to :region, :foreign_key => "regiao"
  has_many :city
  
  validates_presence_of :id
  validates_presence_of :nome
  validates_presence_of :regiao
  validates_uniqueness_of :id

  def to_s
    self.nome
  end
end
